import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/home',
      name: 'home',
      component: HomeView,
    },
    {
      path: '/about',
      name: 'about',
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import('../views/AboutView.vue'),
    },


    {
      path: '/',
      name: 'login',
      component: () => import('../views/Login/Login.vue'),
    },


    {
      path: '/HAdd',
      name: 'HAdd',
      component: () => import('../views/House/HAdd.vue'),
    },

    {
      path: '/HShow',
      name: 'HShow',
      component: () => import('../views/House/HShow.vue'),
    },
    {
      path: '/HUpd',
      name: 'HUpd',
      component: () => import('../views/House/HUpd.vue'),
    },



    {
      path: '/RAdd',
      name: 'RAdd',
      component: () => import('../views/RoomPrice/RAdd.vue'),
    },
    {
      path: '/RShow',
      name: 'RShow',
      component: () => import('../views/RoomPrice/RShow.vue'),
    },
    {
      path: '/RUpd',
      name: 'RUpd',
      component: () => import('../views/RoomPrice/RUpd.vue'),
    },

    {
      path: '/NAdd',
      name: 'NAdd',
      component: () => import('../views/RoomNum/NAdd.vue'),
    },
    {
      path: '/NShow',
      name: 'NShow',
      component: () => import('../views/RoomNum/NShow.vue'),
    },
    {
      path: '/NUpd',
      name: 'NUpd',
      component: () => import('../views/RoomNum/NUpd.vue'),
    },
    
  ],
})

export default router
